package com.kevin.elasticjob;

import com.kevin.elasticjobboot.EnableElasticJob;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.CountDownLatch;

/**
 * @author kevin
 */
@SpringBootApplication
@EnableElasticJob(basePackages = "com.kevin.elasticjob.job")
@MapperScan("com.kevin.elasticjob.dao")
public class JobTestApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(JobTestApplication.class, args);
        new CountDownLatch(1).await();
    }

}
